/* ....   网站公用js文件     ......*/
//引入jquery
document.write("<script type=\"text/javascript\" src=\"javascript/jquery.js\"></script>");
/*
* ajax处理
* //func 返回值后处理的函数
* //postStr 为需要POST的参数格式为 "a=aval&b=bitem"
**/
function ajaxpost(func, postStr, url)
{
	if(url)
	{
		var urlisget = url;
	}
	else
	{
		var urlisget = window.location.href + "?ajaxaction=ajax";
		if(window.location.href.indexOf('?') != -1 && window.location.href.indexOf('ajaxaction=ajax') == -1)
		{
			
			urlisget = window.location.href + "&ajaxaction=ajax";
		}
	}
	$.ajax({
	   type: "POST",
	   url: urlisget,
	   data: postStr,
	   success: func
	});
}
//页面内弹出窗体js对应需要thickbox.css
document.write("<script type=\"text/javascript\" src=\"javascript/thickbox.js\"></script>");
/*
* 删除提示
* //url 删除转向地址
**/
function del_t(url)
{
 	if (confirm("确定删除!"))
	{
 		document.location.href = url;
 	}
}
/*
* 添加到收藏js
* 
**/
function addBookmark() {
var title=document.title;
var url=document.location.href;
	
if (window.sidebar) {
   window.sidebar.addPanel(title, url,''); //Mozilla browser
} else if( document.all ) { //IE browser
   window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) { //not support Now
   return true;
}
}